package com.stjb.furns.test;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.junit.jupiter.api.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author situ
 * @version 1.0
 * @date 2025/5/29 23:17
 * @Description:
 */
public class test {
    @Test
    public void test01(){

        // String orderId = System.currentTimeMillis()+ "";
        // System.out.println(orderId);
        Date orderDate = new Date();
        // 在Servlet或Controller中
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formattedDate = sdf.format(orderDate);
        System.out.println(formattedDate);
    }



}
